<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>Document</title>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"></script>
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
		   
		<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
		   
		<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"></script>
	</head>
	<body class="container">
		<div class="dropdown">
			<button class="btn-success nav-link dropdown-toggle position-relative " type="button"
				data-toggle="dropdown">激活按钮</button>
			<div class="dropdown-menu" style="max-width:300px">
				<h6 class="dropdown-header" type="button">菜单标题</h6>
				<button class="dropdown-item"> 菜单项1</button>
				<button class="dropdown-item"> 菜单项2</button>
				<hr>
				<p class="mx-3">下拉菜单中不仅仅有菜单项，还有文本和表单</p>
				<hr>
				<form action="" class="mx-3">
					<input type="text" placeholder="姓名"><br>
					<input type="password" placeholder="密码">
				</form>
			</div>
		</div>
	</body>
</html>
